package cn.iocoder.yudao.module.book.controller.app.homeworks.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Schema(description = "用户 App - 作业信息 Response VO")
@Data
public class AppHomeworksRespVO {

    @Schema(description = "作业id", requiredMode = Schema.RequiredMode.REQUIRED, example = "10022")
    private Integer homeworkId;

    @Schema(description = "班级id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1871")
    private Integer classesId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    private String title;

    @Schema(description = "日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate date;

    @Schema(description = "作业要求", requiredMode = Schema.RequiredMode.REQUIRED)
    private String requirement;

    @Schema(description = "作业内容", requiredMode = Schema.RequiredMode.REQUIRED)
    private String description;

    @Schema(description = "状态", example = "0")
    private Integer status;

    @Schema(description = "完成人数", example = "5")
    private Integer completedCount;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
